using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    public partial interface IItemCategoryAppService
    {
        Task<ItemCategoryDto> GetAsync(Guid id);
        Task<ItemCategoryDto> FindAsync(string filter);
        Task<ItemCategoryDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<ItemCategoryDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<ItemCategoryDto>> QueryAsync(FilterGroupRequestDto input);
        Task<ListResultDto<ItemCategoryDto>> GetChildrenAsync(Guid? parentId, bool recursive = false);
        Task<ItemCategoryDto> CreateAsync(ItemCategoryCreateDto input);
        Task<ItemCategoryDto> UpdateAsync(Guid id, ItemCategoryUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}
